/**
 * import dependence
 *
 */
const mongoose = require("mongoose");

const schema = new mongoose.Schema(
  {
    // setting model
    userId: { type: String },
    title: { type: String },
    desc: { type: String },
    tags: [{ type: String }],
    content: { type: String },
  },
  {
    timestamps: true,
  }
);

module.exports = mongoose.model("Discussion", schema);
